<template>
  <div>
    <TextEdit class="edit" v-model="msg" />
    <el-button @click="onShow" type="primary">a</el-button>
  </div>
</template>
<script>
import TextEdit from '@/components/TextEdit'
export default {
  components: {
    TextEdit
  },
  data() {
    return {
      msg: ''
    }
  },
  methods: {
    onShow: function() {
      console.log(this.msg)
    }
  }
}
</script>
<style lang="scss" scoped>
.edit {
  height: 300px;
}
</style>